aboutsummaryrefslogtreecommitdiffstats
path: root/src/routes/(app)/[username]/(profile)/+layout.server.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/routes/(app)/[username]/(profile)/+layout.server.ts')
-rw-r--r--src/routes/(app)/[username]/(profile)/+layout.server.ts16
1 files changed, 10 insertions, 6 deletions
diff --git a/src/routes/(app)/[username]/(profile)/+layout.server.ts b/src/routes/(app)/[username]/(profile)/+layout.server.ts
index 70e7ebdb..e2ab51b1 100644
--- a/src/routes/(app)/[username]/(profile)/+layout.server.ts
+++ b/src/routes/(app)/[username]/(profile)/+layout.server.ts
@@ -7,12 +7,16 @@ export async function load({ depends, parent }) {
const rates = await getRates();
const { subject, user } = await parent();
- const { follows, followers } = await get(`/${subject.pubkey}/count`);
- let followList = new Promise((r) => r([]));
- if (user)
- followList = get(`/${user.pubkey}/follows?pubkeysOnly=true`).catch(
- () => [],
- );
+ // const { follows, followers } = await get(`/${subject.pubkey}/count`);
+ // let followList = new Promise((r) => r([]));
+ // if (user)
+ // followList = get(`/${user.pubkey}/follows?pubkeysOnly=true`).catch(
+ // () => [],
+ // );
+
+ const followList = new Promise((r) => r([]));
+ const follows = [];
+ const followers = [];
return { follows, followers, followList, rate: rates[subject.currency] };
}